﻿/***********************************************************************
 * <copyright file="FixedAssetCategorysPresenter.cs" company="BUCA JSC">
 * -->    Copyright (C) statement. All right reserved
 * </copyright>
 * 
 * Created:   BangNC
 * Email:    BangNC@buca.vn
 * Website:
 * Create Date: Thursday, March 13, 2014
 * Usage: 
 * 
 * RevisionHistory: 
 * Date         Author               Description 
 * 
 * ************************************************************************/

using System.Collections.Generic;
using WindowsForms.AOnline.View.Dictionary;


namespace WindowsForms.AOnline.Presenter.Dictionary.FixedAssetCategory
{
    public class FixedAssetCategorysPresenter : Presenter<IFixedAssetCategorysView>
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="FixedAssetCategorysPresenter"/> class.
        /// </summary>
        /// <param name="view">The view.</param>
        public FixedAssetCategorysPresenter(IFixedAssetCategorysView view)
            : base(view)
        {
        }

        /// <summary>
        /// Displays this instance.
        /// </summary>
        public void Display(int page)
        {
            View.FixedAssetCategorys = Model.GetFixedAssetCategorys(page);
        }

        public int GetPageSize()
        {
            return Model.GetPageSizeFixedAssetCategorys();
        }

        /// <summary>
        /// Displays the active.
        /// </summary>
        public void DisplayInventoryItem()
        {
            //View.FixedAssetCategorys = Model.GetFixedAssetCategorysInventoryItem();
        }

        /// <summary>
        /// Displays the active.
        /// </summary>
        public void DisplayTax()
        {
            //View.FixedAssetCategorys = Model.GetFixedAssetCategorysTax();
        }

        /// <summary>
        /// Displays the active.
        /// </summary>
        public void DisplayFixedasset()
        {
            //View.FixedAssetCategorys = Model.GetFixedAssetCategorysFixedasset();
        }

        /// <summary>
        /// Displays the active.
        /// </summary>
        public void DisplayFixedAssetCategoryingObject()
        {
            //View.FixedAssetCategorys = Model.GetFixedAssetCategorysFixedAssetCategoryingObject();
        }

        /// <summary>
        /// Displays for combo tree.
        /// </summary>
        /// <param name="accountId">The account identifier.</param>
        public void DisplayForComboTree(int accountId)
        {
            View.FixedAssetCategorys = Model.GetFixedAssetCategorysForComboTree(accountId);
        }


        /// <summary>
        /// Displays the active.
        /// </summary>
        public void GetAll()
        {
            View.FixedAssetCategorys = Model.GetAllFixedAssetCategorys();
        }

    }
}
